<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本信息',
				'list'=>array(
					array('type'=>'tip','title'=>'<red>产品开通：</red>
					</br>阿里云市场购买api：https://market.aliyun.com/products/57000002/cmapi026109.html#sku=yuncode2010900004
					'),
                    array('type'=>'switch','title'=>'是否启用？','name'=>'isopen'),
					array('type'=>'string','title'=>'AppKey','name'=>'appkey','help'=>'获得路径(登录云市场控制台，在已购买的服务中)'),
					array('type'=>'string','title'=>'AppSecret','name'=>'appsecret'),
					array('type'=>'string','title'=>'AppCode','name'=>'appcode'),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
